function [match, s] = findMatch2(f, d, pos)
num = size(f,1)*size(f,2);
clear match;
for i = 1:num-2
    for j = i+2:num
        m = siftmatch(f{i}, f{j});
        if size(m, 2) > 0
            match{i,j} = m;
        end
    end
end
[si, sj] = size(match);
s = zeros(si, sj);
for i = 1:si
    for j = 1:sj
        s(i,j) = size(match{i,j}, 2);
    end
end
end
